package com.vueblog.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;

/**
 * 课程订单表
 * @TableName t_course_order
 */
@TableName(value ="t_course_order")
@Data
public class CourseOrder implements Serializable {
    /**
     * 课程订单id
     */
    @TableId(type = IdType.AUTO)
    private Integer orderId;

    /**
     * 课程订单编号
     */
    @TableId
    private String orderNo;

    /**
     * 订单状态0：未付款,1：已付款
     */
    private Integer orderStatus;

    /**
     * 支付价格
     */
    private Double coursePrice;

    /**
     * 课程id
     */
    private String courseId;

    /**
     * 用户id
     */
    private String userId;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}